package org.droid.campus.common;



public class Enums {
	
	public enum ActionStatus {
		
		NORMAL_RETURNED(1000,"OK") ,
		REQUEST_TYPE_ERROR(1001,"Request Type Error"),
		PARAMAS_ERROR(1002,"Parameters Error"),
		DATABASE_ERROR(1003,"Database Error"),
		FORBIDDEN(1005,"Access Forbidden"),
		UNKNOWN(1006,"Unknow Error"),
		SERVER_ERROR(1007,"Server Error") ,
		SERVICE_SUSPEND(1008,"Service Suspend");		
		
		int s = -1 ;
		String desc = null ;
		
		public int value(){
			return this.s ;
		}
		
		public int inValue(){
			return this.s ;
		}
		
		public String toString(){
			return this.desc ;
		}
		
		public String getDescription(){
			return this.desc ;
		}
		
		ActionStatus(int status , String description){
			this.s = status ;
			this.desc = description ;
		}
	}
	
public enum ActionType {
		
		DETAIL(1,"DETAIL"),
		TYPE(2,"TYPE");		
		
		int s = -1 ;
		String desc = null ;
		
		public int value(){
			return this.s ;
		}
		
		public int inValue(){
			return this.s ;
		}
		
		public String toString(){
			return this.desc ;
		}
		
		public String getDesc(){
			return this.desc ;
		}
		
		ActionType(int status , String description){
			this.s = status ;
			this.desc = description ;
		}
	}
public enum TypeContext {
	
	CONTEXT(1,"CONTEXT"),
	REDITECT(2,"REDITECT"),
	FORWORD(2,"FORWORD");		
	
	int s = -1 ;
	String desc = null ;
	
	public int value(){
		return this.s ;
	}
	
	public int inValue(){
		return this.s ;
	}
	
	public String toString(){
		return this.desc ;
	}
	
	public String getDesc(){
		return this.desc ;
	}
	
	TypeContext(int status , String description){
		this.s = status ;
		this.desc = description ;
	}
}

	
}
